package com.wanmait.zaisousuo.mapper;

import com.github.pagehelper.PageInfo;
import com.wanmait.zaisousuo.pojo.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionMapper {
    List<Question> findList(@Param("garbageTypeId") Integer garbageTypeId,@Param("textureId") Integer textureId);

    void increaseCount(Integer questionId);

    int deleteByPrimaryKey(Integer id);

    int insert(Question record);

    int insertSelective(Question record);

    Question findById(Integer id);

    int updateByPrimaryKeySelective(Question record);

    int updateByPrimaryKey(Question record);

    void finishedQuestion(Integer questionId);

    void updateDisabled(@Param("id") Integer id,@Param("disabled") boolean disabled);

    void deleteAll(List<Integer> idList);

    void recoverAll(List<Integer> idList);

    List<Question> findAll(@Param("startTime") String startTime, @Param("endTime")String endTime);

    List<Question> findByUserId(Integer id);

}